package com.belazy.library.model.entity;

import com.belazy.library.model.constant.DateFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description <p> 基础Entity抽象类 </p>
 * @Author chupeng.tang
 * @CreateTime 2023/5/19 17:29
 * @Version 1.0
 */
public abstract class BaseEntity implements Serializable {
    @ApiModelProperty(value = "创建人ID")
    private String createBy;
    @ApiModelProperty(value = "创建人名称")
    private String createName;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DateFormat.DATE_1, timezone = DateFormat.TIMEZONE)
    private Date createTime;

    @ApiModelProperty(value = "更新人ID")
    private String updateBy;
    @ApiModelProperty(value = "更新人名称")
    private String updateName;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = DateFormat.DATE_1, timezone = DateFormat.TIMEZONE)
    private Date updateTime;
}
